package oopkChatLab;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JCheckBox;
import javax.swing.JButton;

public class StartupFrame extends JFrame {

	private JPanel contentPane;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					StartupFrame frame = new StartupFrame();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public StartupFrame() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 265, 183);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		textField = new JTextField();
		textField.setBounds(71, 11, 86, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblUsername = new JLabel("Username");
		lblUsername.setBounds(10, 14, 64, 14);
		contentPane.add(lblUsername);
		
		JCheckBox chckbxMultichat = new JCheckBox("Multichat?");
		chckbxMultichat.setBounds(164, 10, 97, 23);
		contentPane.add(chckbxMultichat);
		
		JCheckBox chckbxAutoAccept = new JCheckBox("Automatically accept incoming connections?");
		chckbxAutoAccept.setBounds(10, 39, 233, 23);
		contentPane.add(chckbxAutoAccept);
		
		JButton btnNewButton = new JButton("Start!");
		btnNewButton.setBounds(10, 69, 230, 71);
		contentPane.add(btnNewButton);
	}
}
